﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TeamOPSchoolCup.Domain.POCO.Members;
using TeamOPSchoolCup.Domain.DTO;
namespace TeamOPSchoolCup.Domain.POCO
{
  public class Member
  {
    //We'll need to change this to make the id an FK to ASPSec
    //  But I doubt that EF won't add its own PK.
    public int MemberId { get; set; }
    public string Name { get; set; }
    public DateTime BirthDate { get; set; }
    public string Street { get; set; }
    public string Zipcode { get; set; }
    public string City { get; set; }
    public string Email { get; set; }
    public string Language { get; set; }
    public short Gender_Value { get; set; }
    public string PhoneNumber { get; set; }
    
    //Foreign Keys
    public string UserId { get; set; }

    //Relation to tables
    public virtual Student Student { get; set; }
    public virtual SCC SCC { get; set; }
    public virtual Coach Coach { get; set; }
    public virtual ISFAdmin ISFAdmin { get; set; }
    public virtual NSSFRep NSSFRep { get; set; }
    //Might want to add lazy-loaded references to subclasses

    public Gender Gender
    {
      get { return (Gender)Gender_Value; }
      set { Gender_Value = (short)value; }
    }

    
    /*public int getId() {
      return UserId;
    }
    */
  }
}
